package com.tensquare.friend.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * Created by WF on 2020/7/29 15:50
 */
@FeignClient("tensquare-user")
public interface UserClient {

    //1.调用user服务的增加粉丝数的方法
    @PostMapping("/user/incfans/{userid}/{x}")
    Result incfans(@PathVariable("userid") String userid, @PathVariable("x") int x);

    //2.调用user服务的增加关注数的方法
    @PostMapping("/user/incfollow/{userid}/{x}")
    Result incfollow(@PathVariable("userid") String userid, @PathVariable("x") int x);
}
